package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FPledgeStatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FPledgeStatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNull() {
            addCriterion("ts_code is null");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNotNull() {
            addCriterion("ts_code is not null");
            return (Criteria) this;
        }

        public Criteria andTsCodeEqualTo(String value) {
            addCriterion("ts_code =", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotEqualTo(String value) {
            addCriterion("ts_code <>", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThan(String value) {
            addCriterion("ts_code >", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ts_code >=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThan(String value) {
            addCriterion("ts_code <", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThanOrEqualTo(String value) {
            addCriterion("ts_code <=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLike(String value) {
            addCriterion("ts_code like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotLike(String value) {
            addCriterion("ts_code not like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeIn(List<String> values) {
            addCriterion("ts_code in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotIn(List<String> values) {
            addCriterion("ts_code not in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeBetween(String value1, String value2) {
            addCriterion("ts_code between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotBetween(String value1, String value2) {
            addCriterion("ts_code not between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(String value) {
            addCriterion("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(String value) {
            addCriterion("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(String value) {
            addCriterion("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(String value) {
            addCriterion("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(String value) {
            addCriterion("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(String value) {
            addCriterion("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLike(String value) {
            addCriterion("end_date like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotLike(String value) {
            addCriterion("end_date not like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<String> values) {
            addCriterion("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<String> values) {
            addCriterion("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(String value1, String value2) {
            addCriterion("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(String value1, String value2) {
            addCriterion("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andPledgeCountIsNull() {
            addCriterion("pledge_count is null");
            return (Criteria) this;
        }

        public Criteria andPledgeCountIsNotNull() {
            addCriterion("pledge_count is not null");
            return (Criteria) this;
        }

        public Criteria andPledgeCountEqualTo(Integer value) {
            addCriterion("pledge_count =", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountNotEqualTo(Integer value) {
            addCriterion("pledge_count <>", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountGreaterThan(Integer value) {
            addCriterion("pledge_count >", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("pledge_count >=", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountLessThan(Integer value) {
            addCriterion("pledge_count <", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountLessThanOrEqualTo(Integer value) {
            addCriterion("pledge_count <=", value, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountIn(List<Integer> values) {
            addCriterion("pledge_count in", values, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountNotIn(List<Integer> values) {
            addCriterion("pledge_count not in", values, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountBetween(Integer value1, Integer value2) {
            addCriterion("pledge_count between", value1, value2, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andPledgeCountNotBetween(Integer value1, Integer value2) {
            addCriterion("pledge_count not between", value1, value2, "pledgeCount");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeIsNull() {
            addCriterion("unrest_pledge is null");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeIsNotNull() {
            addCriterion("unrest_pledge is not null");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeEqualTo(Float value) {
            addCriterion("unrest_pledge =", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeNotEqualTo(Float value) {
            addCriterion("unrest_pledge <>", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeGreaterThan(Float value) {
            addCriterion("unrest_pledge >", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeGreaterThanOrEqualTo(Float value) {
            addCriterion("unrest_pledge >=", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeLessThan(Float value) {
            addCriterion("unrest_pledge <", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeLessThanOrEqualTo(Float value) {
            addCriterion("unrest_pledge <=", value, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeIn(List<Float> values) {
            addCriterion("unrest_pledge in", values, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeNotIn(List<Float> values) {
            addCriterion("unrest_pledge not in", values, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeBetween(Float value1, Float value2) {
            addCriterion("unrest_pledge between", value1, value2, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andUnrestPledgeNotBetween(Float value1, Float value2) {
            addCriterion("unrest_pledge not between", value1, value2, "unrestPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeIsNull() {
            addCriterion("rest_pledge is null");
            return (Criteria) this;
        }

        public Criteria andRestPledgeIsNotNull() {
            addCriterion("rest_pledge is not null");
            return (Criteria) this;
        }

        public Criteria andRestPledgeEqualTo(Float value) {
            addCriterion("rest_pledge =", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeNotEqualTo(Float value) {
            addCriterion("rest_pledge <>", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeGreaterThan(Float value) {
            addCriterion("rest_pledge >", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeGreaterThanOrEqualTo(Float value) {
            addCriterion("rest_pledge >=", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeLessThan(Float value) {
            addCriterion("rest_pledge <", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeLessThanOrEqualTo(Float value) {
            addCriterion("rest_pledge <=", value, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeIn(List<Float> values) {
            addCriterion("rest_pledge in", values, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeNotIn(List<Float> values) {
            addCriterion("rest_pledge not in", values, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeBetween(Float value1, Float value2) {
            addCriterion("rest_pledge between", value1, value2, "restPledge");
            return (Criteria) this;
        }

        public Criteria andRestPledgeNotBetween(Float value1, Float value2) {
            addCriterion("rest_pledge not between", value1, value2, "restPledge");
            return (Criteria) this;
        }

        public Criteria andTotalShareIsNull() {
            addCriterion("total_share is null");
            return (Criteria) this;
        }

        public Criteria andTotalShareIsNotNull() {
            addCriterion("total_share is not null");
            return (Criteria) this;
        }

        public Criteria andTotalShareEqualTo(Float value) {
            addCriterion("total_share =", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareNotEqualTo(Float value) {
            addCriterion("total_share <>", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareGreaterThan(Float value) {
            addCriterion("total_share >", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareGreaterThanOrEqualTo(Float value) {
            addCriterion("total_share >=", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareLessThan(Float value) {
            addCriterion("total_share <", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareLessThanOrEqualTo(Float value) {
            addCriterion("total_share <=", value, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareIn(List<Float> values) {
            addCriterion("total_share in", values, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareNotIn(List<Float> values) {
            addCriterion("total_share not in", values, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareBetween(Float value1, Float value2) {
            addCriterion("total_share between", value1, value2, "totalShare");
            return (Criteria) this;
        }

        public Criteria andTotalShareNotBetween(Float value1, Float value2) {
            addCriterion("total_share not between", value1, value2, "totalShare");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioIsNull() {
            addCriterion("pledge_ratio is null");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioIsNotNull() {
            addCriterion("pledge_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioEqualTo(Float value) {
            addCriterion("pledge_ratio =", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioNotEqualTo(Float value) {
            addCriterion("pledge_ratio <>", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioGreaterThan(Float value) {
            addCriterion("pledge_ratio >", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioGreaterThanOrEqualTo(Float value) {
            addCriterion("pledge_ratio >=", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioLessThan(Float value) {
            addCriterion("pledge_ratio <", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioLessThanOrEqualTo(Float value) {
            addCriterion("pledge_ratio <=", value, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioIn(List<Float> values) {
            addCriterion("pledge_ratio in", values, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioNotIn(List<Float> values) {
            addCriterion("pledge_ratio not in", values, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioBetween(Float value1, Float value2) {
            addCriterion("pledge_ratio between", value1, value2, "pledgeRatio");
            return (Criteria) this;
        }

        public Criteria andPledgeRatioNotBetween(Float value1, Float value2) {
            addCriterion("pledge_ratio not between", value1, value2, "pledgeRatio");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}